/*
 * Lona.h
 *
 *  Created on: 21/04/2013
 *      Author: gonzalo
 */

#ifndef LONA_H_
#define LONA_H_

#include "Figure.h"
#include <random>

class Lona: public Figure {
private:
	//DeformacionSuperficial * deformacion;
	GLfloat * control_points_curva_x_1;
	GLfloat * control_points_curva_x_2;
	GLfloat * control_points_curva_y_1;
	GLfloat * control_points_curva_y_2;
	GLuint cant_puntos;
	GLfloat altura_deformacion;
	GLfloat time;

	void cout_control_points(GLfloat * control_points);

	std::default_random_engine generator;
	std::uniform_real_distribution<float> distribution;
public:
	Lona(GLuint  program, GLfloat altura_deformacion);
	virtual ~Lona();

	virtual void draw(GLuint program, glm::mat4 & world_matrix);

	void set_time(GLfloat time);
	void actualizar_curvas();
	void actualizar_time(GLfloat speed);
};

#endif /* LONA_H_ */
